package com.example.graduation.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * @author Jeffery
 * Company实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("company")
public class Company implements Serializable {
    @ApiModelProperty(value = "companyID")
    @TableId(value = "company_id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "company名字")
    @TableField(value = "company_name")
    private String name;

    @ApiModelProperty(value = "company地址")
    @TableField(value = "company_address")
    private String addressId;

    @ApiModelProperty(value = "company简介")
    @TableField(value = "company_description")
    private String description;

    @ApiModelProperty(value = "公司email")
    @TableField(value = "company_email")
    private String email;

    @ApiModelProperty(value = "company图片(存储图片ID，以'，'分割)")
    @TableField(value = "company_img")
    private String img;

    @ApiModelProperty(value = "company创建时间")
    @TableField(value = "company_create_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    @ApiModelProperty(value = "job修改时间")
    @TableField(value = "company_update_time", fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;

    @ApiModelProperty(value = "job_version")
    @TableField(value = "company_version")
    private int version;

    @ApiModelProperty(value = "逻辑删除 0:未删除 1:已删除")
    @TableField(value = "company_has_deleted")
    private int isDeleted;
}
